package com.tao.to;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.tao.base.BaseEntity;


/**
 * The persistent class for the sp_product database table.
 * 
 */
@Entity
@Table(name="t_product")
public class ProductTO extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PRODUCT_ID", nullable=false, length=50)
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "uuid2")
	private String productId;
    
    @Column(name="PRODUCT_IDENTIFIER", nullable=false, length=50)
	private String productIdentifier;
    
    @Column(name="PRODUCT_NAME", length=255)
	private String productName;
    
    @Column(name="PRODUCT_DESC", length=255)
	private String productDesc;
    
    @Column(name="PRODUCT_TYPE", length=50)
	private String productType;
    
	@Column(name="PRODUCT_CATEGORY", length=50)
	private String productCategory;
	
	@Column(name="PRODUCT_STATUS", length=50)
	private String productStatus;
	
	//bi-directional many-to-one association to User2ProductTO
	@OneToMany(mappedBy="productTO")
	private List<User2ProductTO> user2Products;

	public ProductTO() {
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductIdentifier() {
		return productIdentifier;
	}

	public void setProductIdentifier(String productIdentifier) {
		this.productIdentifier = productIdentifier;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductDesc() {
		return productDesc;
	}

	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getProductCategory() {
		return productCategory;
	}

	public void setProductCategory(String productCategory) {
		this.productCategory = productCategory;
	}

	public String getProductStatus() {
		return productStatus;
	}

	public void setProductStatus(String productStatus) {
		this.productStatus = productStatus;
	}

	public List<User2ProductTO> getUser2Products() {
		return user2Products;
	}

	public void setUser2Products(List<User2ProductTO> user2Products) {
		this.user2Products = user2Products;
	}


}